package reflect;

import java.util.Arrays;

/**
 * 变长参数
 *
 */
public class ArgsDemo {
    public static void main(String[] args) {
        doSome("a");
        doSome("a","b");
        doSome("a","b","c");
        doSome("a","b","c","d");

    }
    public static void doSome(String...s) {
        System.out.println(s.length);
        System.out.println(Arrays.toString(s));
    }



}
